package com.teatime.client.net.http;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.LinkedHashMap;
import java.util.Map;

public class HttpRequestParams {
	private Map<String, Object> mParams;
	public HttpRequestParams() {
		mParams = new LinkedHashMap<String, Object>();
	}
	public void add(String name, String value) {
		mParams.put(name, value);
	}
	
	public void add(String name, byte[] data) {
		mParams.put(name, data);
	}
	
	public void add(String name, File file) throws FileNotFoundException {
		mParams.put(name, new FormFile(file));
	}
	
	public void remove(String name) {
		mParams.remove(name);
	}
	
	public Map<String, Object> getParamsMap() {
		return mParams;
	}
}
